<?php defined('SYSPATH') OR die('No direct access allowed.');

// Dies ist der Basis-Controller er Applikation. 
class Javaupload_Controller extends Controller{

	public function __construct()
	
	{ 	  
		parent::__construct();	
	}
	
	public function upload($catid=NULL){
		$model=ORM::factory('Media');
		$model->category_id=$catid;
		$model->upload_file('userfile');
		$model->save();
	}

}
